Optimal. Leaf size=79 \[ \frac{a^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a-b} \tanh (c+d x)}{\sqrt{a}}\right )}{b^2 d \sqrt{a-b}}-\frac{x (2 a+b)}{2 b^2}+\frac{\sinh (c+d x) \cosh (c+d x)}{2 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.121325, antiderivative size = 79, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.217, Rules used = {3187, 470, 522, 206, 208} \[ \frac{a^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a-b} \tanh (c+d x)}{\sqrt{a}}\right )}{b^2 d \sqrt{a-b}}-\frac{x (2 a+b)}{2 b^2}+\frac{\sinh (c+d x) \cosh (c+d x)}{2 b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3187
Rule 470
Rule 522
Rule 206
Rule 208
Rubi steps
\begin{align*} \int \frac{\sinh ^4(c+d x)}{a+b \sinh ^2(c+d x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{x^4}{\left (1-x^2\right )^2 \left (a-(a-b) x^2\right )} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac{\cosh (c+d x) \sinh (c+d x)}{2 b d}-\frac{\operatorname{Subst}\left (\int \frac{a+(a+b) x^2}{\left (1-x^2\right ) \left (a+(-a+b) x^2\right )} \, dx,x,\tanh (c+d x)\right )}{2 b d}\\ &=\frac{\cosh (c+d x) \sinh (c+d x)}{2 b d}+\frac{a^2 \operatorname{Subst}\left (\int \frac{1}{a+(-a+b) x^2} \, dx,x,\tanh (c+d x)\right )}{b^2 d}-\frac{(2 a+b) \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\tanh (c+d x)\right )}{2 b^2 d}\\ &=-\frac{(2 a+b) x}{2 b^2}+\frac{a^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a-b} \tanh (c+d x)}{\sqrt{a}}\right )}{\sqrt{a-b} b^2 d}+\frac{\cosh (c+d x) \sinh (c+d x)}{2 b d}\\ \end{align*}
Mathematica [A] time = 0.24996, size = 71, normalized size = 0.9 \[ \frac{\frac{4 a^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a-b} \tanh (c+d x)}{\sqrt{a}}\right )}{\sqrt{a-b}}-2 (2 a+b) (c+d x)+b \sinh (2 (c+d x))}{4 b^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.043, size = 454, normalized size = 5.8 \begin{align*} -{\frac{1}{2\,bd} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-2}}+{\frac{1}{2\,bd} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-1}}-{\frac{a}{d{b}^{2}}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) }-{\frac{1}{2\,bd}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) }+{\frac{1}{2\,bd} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) ^{-2}}+{\frac{1}{2\,bd} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) ^{-1}}+{\frac{a}{d{b}^{2}}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) }+{\frac{1}{2\,bd}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) }+{\frac{{a}^{2}}{d{b}^{2}}{\it Artanh} \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}}-{\frac{{a}^{2}}{bd}{\it Artanh} \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{-b \left ( a-b \right ) }}}{\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}}-{\frac{{a}^{2}}{d{b}^{2}}\arctan \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}}-{\frac{{a}^{2}}{bd}\arctan \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{-b \left ( a-b \right ) }}}{\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.12917, size = 2191, normalized size = 27.73 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.23783, size = 181, normalized size = 2.29 \begin{align*} \frac{a^{2} \arctan \left (\frac{b e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a - b}{2 \, \sqrt{-a^{2} + a b}}\right )}{\sqrt{-a^{2} + a b} b^{2} d} - \frac{{\left (d x + c\right )}{\left (2 \, a + b\right )}}{2 \, b^{2} d} + \frac{e^{\left (2 \, d x + 2 \, c\right )}}{8 \, b d} + \frac{{\left (4 \, a e^{\left (2 \, d x + 2 \, c\right )} + 2 \, b e^{\left (2 \, d x + 2 \, c\right )} - b\right )} e^{\left (-2 \, d x - 2 \, c\right )}}{8 \, b^{2} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]